package cn.org.eshow.service;

import cn.org.eshow.bean.query.OrderItemQuery;
import cn.org.eshow.common.page.Page;
import cn.org.eshow.model.OrderItem;
import cn.org.eshow.model.ProductComment;

import javax.jws.WebService;
import java.util.List;

@WebService
public interface OrderItemManager extends GenericManager<OrderItem, Integer> {

    List<OrderItem> list(OrderItemQuery query);

    List<OrderItem> list(Integer productOrderId);//根据商品订单ID查询商品清单

    Page<OrderItem> search(OrderItemQuery query);

    OrderItem check(OrderItemQuery query);

    void comment(OrderItem orderItem, ProductComment productComment);

}